package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 文件实体类
 *
 * @author by 春风能解释
 * <p>
 * 2024/8/29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "文件实体类", description = "文件实体类")
public class File extends BaseEntity {

    /**
     * 序列化字段
     */
    @Serial
    private static final long serialVersionUID = 3499066045236867557L;

    /**
     * 文件名
     */
    @Schema(description = "文件名")
    private String fileName;

    /**
     * 文件路径
     */
    @Schema(description = "文件路径")
    private String filePath;

    /**
     * 文件大小
     */
    @Schema(description = "文件大小")
    private Long fileSize;

    /**
     * 文件类型
     */
    @Schema(description = "文件类型(0图片,1视频,2音频,3文本,4文档,5其他)")
    private Integer fileCategory;

    /**
     * 文件后缀
     */
    @Schema(description = "文件后缀")
    private String fileSuffix;

    /**
     * 文件MD5
     */
    @Schema(description = "文件MD5")
    private String fileMd5;

    /**
     * 文件备注
     */
    @Schema(description = "文件备注")
    private String fileNote;
}
